import type { RouteRecordRaw } from 'vue-router';

export const reportRouterMap: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'hugeicons:ai-scheduling',
      keepAlive: true,
      order: 1000,
      title: '中山欧曼',
    },
    name: 'productionPlan',
    path: '/productionPlan',
    children: [
      {
        path: 'omSchedulingList',
        component: () => import('#/pages/scheduling/omScheduling/productionPlan.vue'),
        name: 'OmSchedulingList',
        meta: {
          title: '产线排产',
          affix: true,
        }
      },
      {
        path: 'omSchedulingListDetails',
        component: () => import('#/pages/scheduling/omScheduling/productionPlanDetails.vue'),
        name: 'OmSchedulingListDetails',
        meta: {
          title: '产线排产明细',
          affix: true,
          hideInMenu: true
        }
      },
      {
        path: 'productionPlanList',
        component: () => import('#/pages/scheduling/productionScheduling/productionPlan.vue'),
        name: 'productionPlanList',
        meta: {
          title: '计划排产',
          affix: true,
          hideInMenu: true
        }
      },
      {
        path: 'planProductionAdd',
        component: () => import('#/pages/scheduling/productionScheduling/productionPlanAdd.vue'),
        name: 'planProductionAdd',
        meta: {
          title: '新增',
          affix: true,
          hideInMenu: true
        }
      },
      {
        path: 'productionPlanEdit/:id',
        component: () => import('#/pages/scheduling/productionScheduling/productionPlanEdit.vue'),
        name: 'productionPlanEdit',
        meta: {
          title: '编辑',
          affix: true,
          hideInMenu: true
        }
      },
      {
        path: 'productionPlanDetail/:id',
        component: () => import('#/pages/scheduling/productionScheduling/productionPlanDetail.vue'),
        name: 'productionPlanDetail',
        meta: {
          title: '详情',
          affix: true,
          hideInMenu:true
        }
      },
      {
        path: 'workShopSchedule',
        component: () => import('#/pages/scheduling/workShopScheduling/index.vue'),
        name: 'WorkShopSchedule',
        meta: {
          title: '车间排产',
          affix: true,
          hideInMenu: true
        }
      },
      {
        path: 'workShopScheduleAdd',
        component: () => import('#/pages/scheduling/workShopScheduling/schedulingAdd.vue'),
        name: 'WorkShopScheduleAdd',
        meta: {
          title: '车间排产添加',
          affix: true,
          hideInMenu:true
        }
      },
      {
        path: 'workShopScheduleEdit/:id',
        component: () => import('#/pages/scheduling/workShopScheduling/schedulingEdit.vue'),
        name: 'WorkShopScheduleEdit',
        meta: {
          title: '车间排产编辑',
          affix: true,
          hideInMenu:true
        }
      },
      {
        path: 'codingRules',
        component: () => import('#/pages/scheduling/codingRules/index.vue'),
        name: 'CodingRules',
        meta: {
          title:'编码规则',
          affix: true
        }
      },
      {
        path: 'packagingLevel',
        component: () => import('#/pages/scheduling/packagingLevel/index.vue'),
        name: 'PackagingLevel',
        meta: {
          title:'包装层级定义',
          affix: true
        }
      }
    ]
  }
];
export default reportRouterMap;
